/*mgBVjmwkvoNAq04L4PpN6dPZDZdXcM8yERMSMe+5uu7jmbNICJpHRZn6SQ+EIXLr*/
import { cytjCode_auto, bfCode_auto, dfCode_auto, publicCode_auto, hxgzCode_auto } from '../constants';
import { pubBeforeEvent } from '../../../public/publicMethods/pubBeforeEvent.js';

export default function beforeEvent(props, moduleId, key, value, data) {
	// props, moduleId(区域id), key(操作的键), value（当前值）,data(当前表单所有值)

	let cytjCode = this.cytjCode;
	let bfCode = this.bfCode;
	let dfCode = this.dfCode;
	let publicCode = this.publicCode;
	let hxgzCode = this.hxgzCode;
	if(moduleId == cytjCode_auto){
		cytjCode = cytjCode_auto
		bfCode = bfCode_auto
		dfCode = dfCode_auto
		publicCode = publicCode_auto
	}
	if(moduleId == hxgzCode_auto){
		hxgzCode = hxgzCode_auto
	}
	
	//常用条件编辑后事件
	if (moduleId == cytjCode) {
		pubBeforeEvent(this, props, moduleId, key, value, data, cytjCode, bfCode, dfCode, publicCode);
	}

	return true;
}

/*mgBVjmwkvoNAq04L4PpN6dPZDZdXcM8yERMSMe+5uu7jmbNICJpHRZn6SQ+EIXLr*/